package com.sdy.supermarket.biz.model;

import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.sdy.common.model.BaseModel;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author zzq
 * @since 2019-08-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class GsAppIp extends BaseModel {
    private static final long serialVersionUID = 1L;

    @TableId
    private Integer id;

    private Integer appId;

    private String ip;

    @JsonFormat(pattern = DATETIME_FORMAT)
    private Date createTime;

    private String resIdList;

    /**
     * IP状态 0 - 没有任何限制 1 - 只能变动应用 2 - 不能进行任何操作
     */
    @TableField(exist = false)
    private Integer state;
}
